package gateway.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author liuhuagui
 * @version 1.0.0
 * @date 2024-08-20 17:02:26
 */
@Getter
public class GatewayAccessEvent extends ApplicationEvent {
    private String uri;
    private String ip;
    private String requestMethod;
    private Object userInfo;
    @Setter
    private long time;

    public GatewayAccessEvent(Object source, String uri, String ip,String requestMethod, Object userInfo) {
        super(source);
        this.uri = uri;
        this.ip = ip;
        this.requestMethod = requestMethod;
        this.userInfo = userInfo;
    }

}